# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :migrate.py
# @Time      :2022/6/8 0008 19:39
# @Author    :何胜利
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager

from main import app
from models import db
from models.user import *

manage = Manager(app)

migrate = Migrate(app=app, db=db)

manage.add_command("db", MigrateCommand)

if __name__ == '__main__':
    manage.run()
